﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SI2_TrabalhoFinal {
    public partial class Principal : Form {
        public Principal() {
            InitializeComponent();
        }

        private void listarToolStripMenuItem_Click(object sender, EventArgs e) {
            PacienteListar frm = new PacienteListar();
            frm.MdiParent = this;
            frm.Show();
        }

        private void Principal_Load(object sender, EventArgs e) {
            this.WindowState = FormWindowState.Maximized;
        }

        private void marcarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MarcarConsulta frm = new MarcarConsulta();
            frm.MdiParent = this;
            frm.Show();
        }

        private void listarToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            ListarConsultas frm = new ListarConsultas();
            frm.MdiParent = this;
            frm.Show();
        }

        private void relatórioToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RelatorioConsultas frm = new RelatorioConsultas();
            frm.MdiParent = this;
            frm.Show();
        }
        
        private void especialidadesToolStripMenuItem_Click(object sender, EventArgs e) {
            EspecialidadeListar frm = new EspecialidadeListar();
            frm.MdiParent = this;
            frm.Show();
        }

        private void listarToolStripMenuItem1_Click(object sender, EventArgs e) {
            MedicoListar frm = new MedicoListar();
            frm.MdiParent = this;
            frm.Show();
        }

        private void historialClínicoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            HistorialClinico frm = new HistorialClinico();
            frm.MdiParent = this;
            frm.Show();
        }
        

        private void produzirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RelatorioFinanceiro frm = new RelatorioFinanceiro("Produzir");
            frm.MdiParent = this;
            frm.Show();
        }

        private void gravarParaFicheiroToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RelatorioFinanceiro frm = new RelatorioFinanceiro("Salvar");
            frm.MdiParent = this;
            frm.Show();
        }

        
    }
}
